home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
tttsrc
/
ticf1.frm
< prev
Wrap
Text File
|
1995-05-08
|
5KB
|
190 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
Caption = "TicTacToe"
ClientHeight = 4590
ClientLeft = 225
ClientTop = 1530
ClientWidth = 4215
Height = 4995
Left = 165
LinkMode = 1 'Source
LinkTopic = "TICF1"
MaxButton = 0 'False
ScaleHeight = 4590
ScaleWidth = 4215
Top = 1185
Width = 4335
Begin CheckBox XCheck
BackColor = &H00000000&
Caption = "I'm playing X"
ForeColor = &H00FFFFFF&
Height = 375
Left = 360
TabIndex = 6
Top = 3600
Width = 1575
End
Begin ListBox namelist
Height = 1980
Left = 2160
TabIndex = 3
Top = 1920
Width = 1695
End
Begin Label Label4
BackColor = &H00000000&
Caption = "Please choose your OPPONENT from the list on the right."
ForeColor = &H00FFFFFF&
Height = 855
Left = 360
TabIndex = 4
Top = 2400
Width = 1455
End
Begin Label Label3
Alignment = 2 'Center
BackColor = &H00000000&
Caption = "Copyright 1994, Virtual Systems"
ForeColor = &H0000FFFF&
Height = 255
Left = 120
TabIndex = 2
Top = 4320
Width = 3975
End
Begin Label Label2
Alignment = 2 'Center
BackColor = &H00000000&
Caption = "For use with America Online and C-Room"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF00FF&
Height = 615
Left = 360
TabIndex = 1
Top = 960
Width = 3375
End
Begin Label Label1
BackColor = &H00000000&
Caption = "Tic Tac Toe"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 24
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H0000C000&
Height = 615
Left = 720
TabIndex = 0
Top = 120
Width = 2775
End
Begin Label Label5
Caption = "Label5"
Height = 255
Left = 2280
LinkItem = "People"
LinkTopic = "Croom|People"
TabIndex = 5
Top = 1920
Width = 735
End
End
Dim foo
Sub Form_Load ()
'label5.LinkMode = 3
label5.LinkMode = 2
label5.LinkRequest ' change, so get a new list
label5.LinkMode = 3 ' of people in the room
foo = 0
namelist.Clear
StartLoc = 1
For lp = 1 To Len(label5)
If Mid$(label5, lp, 1) = ";" Or lp = Len(label5) Then
temp = Mid$(label5, StartLoc, ((lp) - StartLoc))
namelist.AddItem temp
StartLoc = lp + 1
End If
Next
End Sub
Sub Form_Unload (Cancel As Integer)
label5.LinkMode = 0
End Sub
Sub Label5_LinkNotify ()
' label5.LinkMode = 2 ' We've been notified of a
' label5.LinkRequest ' change, so get a new list
' label5.LinkMode = 3 ' of people in the room
'
' namelist.Clear
' StartLoc = 1
' For lp = 1 To Len(label5)
' If Mid$(label5, lp, 1) = ";" Or lp = Len(label5) Then
' temp = Mid$(label5, StartLoc, ((lp) - StartLoc))
' namelist.AddItem temp
' StartLoc = lp + 1
' End If
' Next
End Sub
Sub namelist_Click ()
CurrentMove = "X"
foo = foo + 1
If foo = 1 Then
opponent = namelist.Text
label4 = "Now, Pick YOUR screen name from the list on the right."
'label5.LinkMode = 2
'label5.LinkRequest ' change, so get a new list
'label5.LinkMode = 3 ' of people in the room
Else
Yourself = namelist.Text
If XCheck.Value = 1 Then
Marker = "X"
OMarker = "O"
Else
Marker = "O"
OMarker = "X"
End If
form2.Show
form1.Hide
End If
End Sub
Sub Text1_LinkNotify ()
label5.LinkMode = 2
label5.LinkRequest ' change, so get a new list
label5.LinkMode = 3 ' of people in the room
namelist.Clear
StartLoc = 1
For lp = 1 To Len(label5)
If Mid$(label5, lp, 1) = ";" Or lp = Len(label5) Then
temp = Mid$(label5, StartLoc, ((lp) - StartLoc))
namelist.AddItem temp
StartLoc = lp + 1
End If
Next
End Sub